import {connect} from "react-redux";

import Banner from "../components/view/Swip";

// import getBanner from "../actions/BannerAction"
import {getBanner} from "../api/index"

const mapStateToProps = (state) => {

    // console.log(state)
    return {
       all:state.Banner.all
    }
}

const mapDispatchToProps = (dispatch) => {
    return {
        getImgBanner(){
            return getBanner()
        }
    }
}

let BannerContainer = connect(mapStateToProps,mapDispatchToProps)(Banner);

export default BannerContainer